WITPload version 1.10

This program will export the scenario database files for a scenario number to several CSV files.

As part of the export, a reference table CSV is generated showing the values for certain exported/editor fields.

In addition, it also provides the ability to import changes to these CSV files back into the scenario database files.

It is suggested that when creating a new scenario that you copy the original database files (wpa, wpl, wph, wpd, wpg, wpp, wpc and wps) to a new directory and modify them there. And then copy them back to the games scenario directory.

Do not modify any of the official scenarios (1-25) as this may impact your ability to apply patches in the future. If you want to change an official scenario, it is best to copy and rename them to a spare scenario number or load it by the Editor and then save it a spare slot.

Be careful. The import function does not check that the value entered for a field is within the game parameters. For example, assigning a weapon slot to a non-defined weapon device will not be picked up by the import.
The program will do simple byte checking - it will reject ("Value error") an attempt to load a value into a field that cannot hold that value.

Restrictions:
The first row (field names) must NOT be altered otherwise the fields cannot be imported.
The first column (UnitNumber) must always be first otherwise the program will not know which item number the fields apply to.
The scenario databases must exist in order for the import to function. If building a new scenario, copy the files for an existing scenario and rename them to your scenario number. Then import the CSV files for your new scenario.

Running the program:
The program is run from the command prompt.

The CSV files are always created/read from the current directory.

Several parameters are defined for use with the program. The default parameters are:
a) Import the CSV files
b) To scenario #1 database
c) In the current directory.

To override the default case, the following options are available.

/e       Exports to CSV format
/s###    Scenario number (1-199) to import or export.
/d       Path to the scenario files. In some window versions, the path must be defined in quotes (").
/i       Use the default install path (C:\\Matrix Games\\War in the Pacific Admiral's Edition\\scen).

Eamples:
To export scenario #35 in the current directory
witpload /e /s35

To import scenario #35 in the current directory
witpload /s35

To export scenario #35 from the default install directory
witpload /e /s35 /i

To see options
witpload /?


I hope that you find this program useful.

Michael
Australia
